home *** CD-ROM | disk | FTP | other *** search
/ Internet Magazine 2004 New Year / INTERNET112.ISO / pc / software / windows / building / easy_php / easyphp16_setup.exe / {app} / phpmyadmin / config.inc.php < prev    next >
Encoding:
PHP Script  |  2003-09-24  |  10.9 KB  |  287 lines

  1. <?php
  2. /* $Id: config.inc.php,v 1.80 2002/04/17 01:48:32 lem9 Exp $ */
  3.  
  4.  
  5. /**
  6.  * phpMyAdmin Configuration File
  7.  *
  8.  * All directives are explained in Documentation.html
  9.  */
  10.  
  11.  
  12. /**
  13.  * Bookmark Table Structure
  14.  *
  15.  * CREATE TABLE bookmark (
  16.  *  id int(11) DEFAULT '0' NOT NULL auto_increment,
  17.  *  dbase varchar(255) NOT NULL,
  18.  *  user varchar(255) NOT NULL,
  19.  *  label varchar(255) NOT NULL,
  20.  *  query text NOT NULL,
  21.  *  PRIMARY KEY (id)
  22.  * );
  23.  *
  24.  */
  25.  
  26.  
  27. /**
  28.  * Your phpMyAdmin url
  29.  *
  30.  * Complete the variable below with the full url ie
  31.  *    http://www.your_web.net/path_to_your_phpMyAdmin_directory/
  32.  *
  33.  * It must contain characters that are valid for a URL, and the path is
  34.  * case sensitive on some Web servers, for example Unix-based servers.
  35.  */
  36. $cfgPmaAbsoluteUri = 'http://127.0.0.1/mysql/';
  37.  
  38.  
  39. /**
  40.  * Server(s) configuration
  41.  */
  42. $i = 0;
  43. // The $cfgServers array starts with $cfgServers[1].  Do not use $cfgServers[0].
  44. // You can disable a server config entry by setting host to ''.
  45. $i++;
  46. $cfgServers[$i]['host']          = 'localhost'; // MySQL hostname
  47. $cfgServers[$i]['port']          = '';          // MySQL port - leave blank for default port
  48. $cfgServers[$i]['socket']        = '';          // Path to the socket - leave blank for default socket
  49. $cfgServers[$i]['connect_type']  = 'tcp';       // How to connect to MySQL server ('tcp' or 'socket')
  50. $cfgServers[$i]['controluser']   = '';          // MySQL control user settings
  51.                                                 // (this user must have read-only
  52. $cfgServers[$i]['controlpass']   = '';          // access to the "mysql/user"
  53.                                                 // and "mysql/db" tables)
  54. $cfgServers[$i]['auth_type']     = 'config';    // Authentication method (config, http or cookie based)?
  55. $cfgServers[$i]['user']          = 'root';      // MySQL user
  56. $cfgServers[$i]['password']      = '';          // MySQL password (only needed
  57.                                                 // with 'config' auth_type)
  58. $cfgServers[$i]['only_db']       = '';          // If set to a db-name, only
  59.                                                 // this db is displayed
  60.                                                 // at left frame
  61.                                                 // It may also be an array
  62.                                                 // of db-names
  63. $cfgServers[$i]['verbose']       = '';          // Verbose name for this host - leave blank to show the hostname
  64. $cfgServers[$i]['bookmarkdb']    = '';          // Bookmark db - leave blank for no bookmark support
  65. $cfgServers[$i]['bookmarktable'] = '';          // Bookmark table - leave blank for no bookmark support
  66. $cfgServers[$i]['relation']      = '';          // table to describe the relation between links (see doc)
  67.                                                 //   - leave blank for no relation-links support
  68.  
  69. $i++;
  70. $cfgServers[$i]['host']          = '';
  71. $cfgServers[$i]['port']          = '';
  72. $cfgServers[$i]['socket']        = '';
  73. $cfgServers[$i]['connect_type']  = 'tcp';
  74. $cfgServers[$i]['controluser']   = '';
  75. $cfgServers[$i]['controlpass']   = '';
  76. $cfgServers[$i]['auth_type']     = 'config';
  77. $cfgServers[$i]['user']          = 'root';
  78. $cfgServers[$i]['password']      = '';
  79. $cfgServers[$i]['only_db']       = '';
  80. $cfgServers[$i]['verbose']       = '';
  81. $cfgServers[$i]['bookmarkdb']    = '';
  82. $cfgServers[$i]['bookmarktable'] = '';
  83. $cfgServers[$i]['relation']      = '';
  84.  
  85. $i++;
  86. $cfgServers[$i]['host']          = '';
  87. $cfgServers[$i]['port']          = '';
  88. $cfgServers[$i]['socket']        = '';
  89. $cfgServers[$i]['connect_type']  = 'tcp';
  90. $cfgServers[$i]['controluser']   = '';
  91. $cfgServers[$i]['controlpass']   = '';
  92. $cfgServers[$i]['auth_type']     = 'config';
  93. $cfgServers[$i]['user']          = 'root';
  94. $cfgServers[$i]['password']      = '';
  95. $cfgServers[$i]['only_db']       = '';
  96. $cfgServers[$i]['verbose']       = '';
  97. $cfgServers[$i]['bookmarkdb']    = '';
  98. $cfgServers[$i]['bookmarktable'] = '';
  99. $cfgServers[$i]['relation']      = '';
  100.  
  101. // If you have more than one server configured, you can set $cfgServerDefault
  102. // to any one of them to autoconnect to that server when phpMyAdmin is started,
  103. // or set it to 0 to be given a list of servers without logging in
  104. // If you have only one server configured, $cfgServerDefault *MUST* be
  105. // set to that server.
  106. $cfgServerDefault = 1;                         // Default server (0 = no default server)
  107. $cfgServer        = '';
  108. unset($cfgServers[0]);
  109.  
  110.  
  111. /**
  112.  * Other core phpMyAdmin settings
  113.  */
  114. $cfgOBGzip                = TRUE;   // use GZIP output buffering if possible
  115. $cfgPersistentConnections = FALSE;  // use persistent connections to MySQL database
  116. $cfgExecTimeLimit         = 300;    // maximum execution time in seconds (0 for no limit)
  117. $cfgSkipLockedTables      = FALSE;  // mark used tables, make possible to show
  118.                                     // locked tables (since MySQL 3.23.30)
  119. $cfgShowSQL               = TRUE;   // show SQL queries as run
  120. $cfgAllowUserDropDatabase = FALSE;  // show a 'Drop database' link to normal users
  121. $cfgConfirm               = TRUE;   // confirm 'DROP TABLE' & 'DROP DATABASE'
  122. $cfgLoginCookieRecall     = TRUE;   // recall previous login in cookie auth. mode or not
  123.  
  124. // Left frame setup
  125. $cfgLeftFrameLight        = TRUE;   // use a select-based menu and display only the
  126.                                     // current tables in the left frame.
  127. $cfgShowTooltip           = TRUE;   // display table comment as tooltip in left frame
  128.  
  129. // In the main frame, at startup...
  130. $cfgShowStats             = TRUE;   // allow to display statistics and space usage in
  131.                                     // the pages about database details and table
  132.                                     // properties
  133. $cfgShowMysqlInfo         = FALSE;  // whether to display the "MySQL runtime
  134. $cfgShowMysqlVars         = FALSE;  // information", "MySQL system variables", "PHP
  135. $cfgShowPhpInfo           = FALSE;  // information" and "change password" links for
  136. $cfgShowChgPassword       = FALSE;  // simple users or not
  137.  
  138. // In browse mode...
  139. $cfgShowBlob              = FALSE;  // display blob field contents
  140. $cfgNavigationBarIconic   = TRUE;   // do not display text inside navigation bar buttons
  141. $cfgShowAll               = FALSE;  // allows to display all the rows
  142. $cfgMaxRows               = 30;     // maximum number of rows to display
  143. $cfgOrder                 = 'ASC';  // default for 'ORDER BY' clause (valid
  144.                                     // values are 'ASC', 'DESC' or 'SMART' -ie
  145.                                     // descending order for fields of type
  146.                                     // TIME, DATE, DATETIME & TIMESTAMP,
  147.                                     // ascending order else-)
  148.  
  149. // In edit mode...
  150. $cfgProtectBinary         = 'blob'; // disallow editing of binary fields
  151.                                     // valid values are:
  152.                                     //   FALSE  allow editing
  153.                                     //   'blob' allow editing except for BLOB fields
  154.                                     //   'all'  disallow editing
  155. $cfgShowFunctionFields    = TRUE;   // Display the function fields in edit/insert mode
  156.  
  157. // For the export features...
  158. $cfgZipDump               = TRUE;   // Allow the use of zip/gzip/bzip
  159. $cfgGZipDump              = TRUE;   // compression for
  160. $cfgBZipDump              = TRUE;   // dump files
  161.  
  162.  
  163. /**
  164.  * Link to the official MySQL documentation
  165.  * Be sure to include no trailing slash on the path
  166.  */
  167. $cfgManualBaseShort = 'http://www.mysql.com/doc';
  168.  
  169.  
  170. /**
  171.  * Language settings
  172.  */
  173. // Default language to use, if not browser-defined or user-defined
  174. $cfgDefaultLang = 'en';
  175. // Force: always use this language - must be defined in
  176. //        libraries/select_lang.lib.php
  177. // $cfgLang     = 'en';
  178. // Loads language file
  179. require('./libraries/select_lang.lib.php');
  180.  
  181.  
  182. /**
  183.  * Customization & design
  184.  */
  185. $cfgLeftWidth           = 150;          // left frame width
  186. $cfgLeftBgColor         = '#D0DCE0';    // background color for the left frame
  187. $cfgLeftPointerColor    = '#CCFFCC';    // color of the pointer in left frame
  188.                                         // (blank for no pointer)
  189. $cfgRightBgColor        = '#F5F5F5';    // background color for the right frame
  190. $cfgBorder              = 0;            // border width on tables
  191. $cfgThBgcolor           = '#D3DCE3';    // table header row colour
  192. $cfgBgcolorOne          = '#CCCCCC';    // table data row colour
  193. $cfgBgcolorTwo          = '#DDDDDD';    // table data row colour, alternate
  194. $cfgBrowsePointerColor  = '#CCFFCC';    // color of the pointer in browse mode
  195.                                         // (blank for no pointer)
  196. $cfgBrowseMarkerColor   = '#FFCC99';    // color of the marker (visually marks row
  197.                                         // by clicking on it) in browse mode
  198.                                         // (blank for no marker)
  199. $cfgTextareaCols        = 40;           // textarea size (columns) in edit mode
  200. $cfgTextareaRows        = 7;            // textarea size (rows) in edit mode
  201. $cfgLimitChars          = 50;           // max field data length in browse mode
  202. $cfgModifyDeleteAtLeft  = TRUE;         // show edit/delete links on left side of browse
  203.                                         // (or at the top with vertical browse)
  204. $cfgModifyDeleteAtRight = FALSE;        // show edit/delete links on right side of browse
  205.                                         // (or at the bottom with vertical browse)
  206. $cfgDefaultDisplay      = 'horizontal'; // default display direction (horizontal|vertical)
  207. $cfgRepeatCells         = 100;          // repeat header names every X cells? (0 = deactivate)
  208.  
  209.  
  210. /**
  211.  * MySQL settings
  212.  */
  213. // Column types;
  214. // varchar, tinyint, text and date are listed first, based on estimated popularity
  215. $cfgColumnTypes = array(
  216.    'VARCHAR',
  217.    'TINYINT',
  218.    'TEXT',
  219.    'DATE',
  220.    'SMALLINT',
  221.    'MEDIUMINT',
  222.    'INT',
  223.    'BIGINT',
  224.    'FLOAT',
  225.    'DOUBLE',
  226.    'DECIMAL',
  227.    'DATETIME',
  228.    'TIMESTAMP',
  229.    'TIME',
  230.    'YEAR',
  231.    'CHAR',
  232.    'TINYBLOB',
  233.    'TINYTEXT',
  234.    'BLOB',
  235.    'MEDIUMBLOB',
  236.    'MEDIUMTEXT',
  237.    'LONGBLOB',
  238.    'LONGTEXT',
  239.    'ENUM',
  240.    'SET'
  241. );
  242.  
  243. // Atributes
  244. $cfgAttributeTypes = array(
  245.    '',
  246.    'BINARY',
  247.    'UNSIGNED',
  248.    'UNSIGNED ZEROFILL'
  249. );
  250.  
  251. // Available functions
  252. if ($cfgShowFunctionFields) {
  253.     $cfgFunctions = array(
  254.        'ASCII',
  255.        'CHAR',
  256.        'SOUNDEX',
  257.        'LCASE',
  258.        'UCASE',
  259.        'NOW',
  260.        'PASSWORD',
  261.        'MD5',
  262.        'ENCRYPT',
  263.        'RAND',
  264.        'LAST_INSERT_ID',
  265.        'COUNT',
  266.        'AVG',
  267.        'SUM',
  268.        'CURDATE',
  269.        'CURTIME',
  270.        'FROM_DAYS',
  271.        'FROM_UNIXTIME',
  272.        'PERIOD_ADD',
  273.        'PERIOD_DIFF',
  274.        'TO_DAYS',
  275.        'UNIX_TIMESTAMP',
  276.        'USER',
  277.        'WEEKDAY'
  278.     );
  279. } // end if
  280.  
  281.  
  282. /**
  283.  * Unset magic_quotes_runtime - do not change!
  284.  */
  285. set_magic_quotes_runtime(0);
  286. ?>
  287.